package com.sdp.flow.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import com.sdp.core.bizc.vo.Result;
import com.sdp.flow.db.service.IWorkflowService;

@RestController
@RequestMapping("/WorkflowController")
public class WorkflowController {

	@Autowired
	private IWorkflowService workflowService;
	
	@GetMapping(value = "/getNextFlowNode")
	public Result<?> getNextFlowNode(@RequestParam(name="taskId",required=true) String taskId) {
		return Result.ok(workflowService.getNextFlowNode(taskId));
	}
}
